<!DOCTYPE html>
<html lang="zh-cn" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" type="text/css" href="/resources/assets/admin-tools/admin-forms/css/admin-forms.css"/>
    <link rel="stylesheet" type="text/css" href="/resources/assets/skin/default_skin/css/theme.css"/>

</head>

<body>
<aside id="sidebar_left" class="nano nano-light affix sidebar-light" th:fragment="menu">

    <!-- Start: Sidebar Left Content -->
    <div class="sidebar-left-content nano-content">

        <!-- Start: Sidebar Menu -->
        <ul class="nav sidebar-menu main_nav">
            <li class="">
                <a th:href="@{/admin/dashboard}">
                    <span class="glyphicon glyphicon-home"></span>
                    <span class="sidebar-title">主页</span>
                </a>
            </li>
            <li th:each="permissionTree : ${session.permissionTrees}" th:object="${permissionTree}" th:class="'p_' + *{permissionId}">
                <a href="javascript:void(0);">
                    <span class="fa" th:classappend="*{icon}"></span>
                    <span class="sidebar-title" th:text="*{name}"></span>
                </a>
                <div th:if="*{childPermissionTrees} != null">
                    <ul th:if="*{childPermissionTrees} != null">
                        <li th:each="childPermissionTree:*{childPermissionTrees}" th:object="${childPermissionTree}">
                            <a th:class="'c_' + *{permissionId}" th:href="@{*{url}}">
                                <span class="fa" th:classappend="*{icon}"></span>
                                <span class="sidebar-title" th:text="*{name}"></span>
                            </a>
                        </li>
                    </ul>
                </div>
            </li>
        </ul>
        <!-- End: Sidebar Menu -->


        <!-- Start: Sidebar Collapse Button -->
        <div class="sidebar-toggle-mini">
            <a href="#">
                <span class="fa fa-sign-out"></span>
            </a>
        </div>
        <!-- End: Sidebar Collapse Button -->

    </div>
    <!-- End: Sidebar Left Content -->

</aside>
</body>
</html>